package Player;

import Game.BBoard;
import Game.Bufu;
import Game.Card;
import Game.Hand;

public class HumanPlayer implements Player
{
	private Hand hand;
	private BBoard board;
	private Bufu rules;
	private int playerID;
	
	public HumanPlayer()
	{
		hand = new Hand();	
		board = new BBoard();
		rules = new Bufu();
	}
	
	public void addCardB(Card c)
	{
		board.add(c);
	}
	
	public void addCardH(Card c)
	{
		hand.addCard(c);
	}
	
	public void sortCards()
	{
		hand.sortByValue();
	}

	
	public Card getNextMove(int m) 
	{
		Card move = null;
		move = hand.getCard(m);
		hand.removeCard(m);
		return move;		
	}
	
	public Hand getHand()
	{
		return hand;
	}
	
	public BBoard getBoard()
	{
		return board;
	}
	
	/**
	 * swap cards at the beginning of the game
	 * te be implemented
	 */
	public void swap()
	{
		
	}

	
	public int getPlayerID() 
	{
		return playerID;		
	}
	
	public void setPlayerID(int thePlayer) 
	{
		playerID = thePlayer;		
	}

	/**
	 * get next move with a card on stack
	 */
	public Card getNextMove(Card b) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public Card getNextMove() {
		// TODO Auto-generated method stub
		return null;
	}
	


}
